package com.itcncp.ucenter.dao.mapper;

import com.itcncp.ucenter.dao.model.ItcsTransJnl;
import com.itcncp.ucenter.dao.model.ItcsTransJnlExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ItcsTransJnlMapper {
    long countByExample(ItcsTransJnlExample example);

    int deleteByExample(ItcsTransJnlExample example);

    int deleteByPrimaryKey(String transNo);

    int insert(ItcsTransJnl record);

    int insertSelective(ItcsTransJnl record);

    List<ItcsTransJnl> selectByExample(ItcsTransJnlExample example);

    ItcsTransJnl selectByPrimaryKey(String transNo);

    /**
     * 统计该用户属于某一车牌下的通行费记录汇总
     * @param record
     * @return
     */
    ItcsTransJnl totalPlateTollFare(ItcsTransJnl record);

    int updateByExampleSelective(@Param("record") ItcsTransJnl record, @Param("example") ItcsTransJnlExample example);

    int updateByExample(@Param("record") ItcsTransJnl record, @Param("example") ItcsTransJnlExample example);

    int updateByPrimaryKeySelective(ItcsTransJnl record);

    int updateByPrimaryKey(ItcsTransJnl record);


}